package com.csun.cmny.provider.model.dto.disinfection;

import com.csun.cmny.base.dto.BaseQuery;
import com.csun.cmny.provider.validator.OmcCMDisinfectionTaskValidator;
import com.csun.cmny.provider.validator.OmcCMDisinfectionToiletTaskValidator;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;


@Data
public class DisinfectionTaskDto extends BaseQuery {

    private Integer id;

    /**
     * 资产类型id（1-电梯 2-餐车 3-冰箱 4-微波炉 5-座便器 6-夜壶 7-其他）
     */
    @NotNull(message = "{CM.disinfeciton.task.id.null}", groups = {OmcCMDisinfectionTaskValidator.class})
    private Integer typeId;

    /**
     * 楼栋ID
     */
    @NotNull(message = "{CM.build.id.null}", groups = {OmcCMDisinfectionTaskValidator.class})
    private Integer buildId;

    /**
     * 楼栋名称
     */
    private String buildName;

    /**
     * 消毒具体区域
     */
    private String disinfectionArea;

    /**
     * 具体位置
     */
    @NotNull(message = "{CMOldman.location.null}",groups = {OmcCMDisinfectionToiletTaskValidator.class})
    private String location;

    /**
     * 老人id
     */
    @NotNull(message = "{CMOldman.id.null}",groups = {OmcCMDisinfectionToiletTaskValidator.class})
    private Long oldmanId;

    private String oldmanName;
    /**
     * 资产编号
     */
    @NotNull(message = "{CM.disinfeciton.task.no.null}", groups = {OmcCMDisinfectionTaskValidator.class})
    private String serviceItemNo;

    private List<Integer> typeIds;
}
